import Vue from 'vue'
import Router from 'vue-router'
import index from '@/components/index'
import index1 from '@/components/nav/index1'
import mineCar from '@/components/nav/mineCar'
import documento from '@/components/nav/documento'
import shared from '@/components/nav/shared'
import management from '@/components/nav/management'
import payment from '@/components/nav/payment'
import fapiaoguan from '@/components/nav/fapiaoguan'
import control from '@/components/nav/control'
import factoring from '@/components/nav/factoring'
import forget from '@/components/nav/forget'
import apply from '@/components/nav/apply'
import applyz from '@/components/nav/apply/applyz'
import role from '@/components/nav/apply/role'
import staff from '@/components/nav/apply/staff'
import loginPassword from '@/components/nav/apply/password/loginPassword'
import paymentCode from '@/components/nav/apply/password/paymentCode'
import mine from '@/components/nav/mineCarone/mine'
import docu from '@/components/nav/mineCarone/docu'
import shar from '@/components/nav/mineCarone/shar'




Vue.use(Router)

export default new Router({
  routes: [
  		
    {
      path: '/',
      name: 'index',
      component: index,
      children:[
      	{
		      path: '/',
		      name:'index1',
		      component: index1
		    },
		    {
		      path: '/mineCar',
		      component: mineCar,
		       children:[
		       		{
		       			  path: '/',
		       			  name:'mine',
		      				component: mine
		       		},
		       		{
		       			path:'/mine',
		       			component:mine
		       		},
		       		{
		       			path:'/docu',
		       			component:docu
		       		},
		       		{
		       			path:'/shar',
		       			component:shar
		       		}
		       ]
		    },
		    {
		      path: '/index1',
		      component: index1
		    },
		    {
		      path: '/documento',
		      component: documento
		    },
		    {
		      path: '/shared',
		      component: shared
		    },
		    {
		      path: '/management',
		      component: management
		    },
		    {
		      path: '/payment',
		      component: payment
		    },
		    {
		      path: '/fapiaoguan',
		      component: fapiaoguan
		    },
		    {
		      path: '/control',
		      component: control
		    },
		    {
		      path: '/factoring',
		      component: factoring
		    },
		    {
		      path: '/apply',
		      component: apply,
		      children:[
		      	{
		      		path: '/',
		      		name:'applyz',
		      		component: applyz
		      	},
		      	{
		      		path:'/applyz',
		      		component: applyz,
		      		children:[
		      			{
				      		path: '/',
				      		name:'paymentCode',
				      		component: paymentCode
				      	},
		      			{
		      				path: '/loginPassword',
		      				component: loginPassword
		      			},
		      			{
		      				path: '/paymentCode',
		      				component: paymentCode
		      			}
		      		
		      		]
		      	},
		      	{
		      		path: '/role',
		      		component: role
		      	},
		      	{
		      		path: '/staff',
		      		component: staff
		      	}
		      ]
		    },
		    {
		      path: '/forget',
		      component: forget
		    }
      ]
    }
    
  ]
})
